//
//  LSZThumbUpForwardCollectionViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/21.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZThumbUpForwardCollectionViewCell.h"

@implementation LSZThumbUpForwardCollectionViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        CGFloat heightA = [LSZSpecialPackaging initWithReturnsthesizeOf:60 :5];

        CGFloat height = [LSZSpecialPackaging initWithReturnsthesizeOf:18 :2];
        self.labelFrame = [[UILabel alloc]init];
        self.labelFrame.textColor = lightColor;
        self.labelFrame.frame = CGRectMake(heightA, 4, ScreenWidth-heightA-10, height);
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelFrame font:13.5];
        [self addSubview:self.labelFrame];

        CGFloat heightEvaluation = [LSZSpecialPackaging initWithReturnsthesizeOf:18 :2];
        self.imageViewEvaluation = [[UIImageView alloc]init];
        self.imageViewEvaluation.frame = CGRectMake(heightA, CGRectGetMaxY(self.labelFrame.frame)+20, heightEvaluation, heightEvaluation);
        self.imageViewEvaluation.image = [UIImage imageNamed:@"留言"];
        [self addSubview:self.imageViewEvaluation];

        self.labelEvaluation = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewEvaluation.frame)+4, CGRectGetMinY(self.imageViewEvaluation.frame), 60, heightEvaluation)];
        self.labelEvaluation.textColor = lightColor;
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelEvaluation font:12.5];
        [self addSubview:self.labelEvaluation];


        self.imageViewZan = [[UIImageView alloc]init];
        self.imageViewZan.frame = CGRectMake(CGRectGetMaxX(self.labelEvaluation.frame)+5,CGRectGetMinY(self.imageViewEvaluation.frame), heightEvaluation, heightEvaluation);
        [self addSubview:self.imageViewZan];

        self.labelZan = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewZan.frame)+4, CGRectGetMinY(self.imageViewEvaluation.frame), 60, heightEvaluation)];
        self.labelZan.textColor = lightColor;
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelZan font:12.5];
        [self addSubview:self.labelZan];


        self.imageViewShare = [[UIImageView alloc]init];
        self.imageViewShare.frame = CGRectMake(CGRectGetMaxX(self.labelZan.frame), CGRectGetMinY(self.imageViewEvaluation.frame), heightEvaluation, heightEvaluation);
        self.imageViewShare.image = [UIImage imageNamed:@"礼物"];
        [self addSubview:self.imageViewShare];

        self.labelShare = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewShare.frame)+4, CGRectGetMinY(self.imageViewEvaluation.frame), 60, heightEvaluation)];
        self.labelShare.textColor = lightColor;
        self.labelShare.text = @"赠送";
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelShare font:12.5];
        [self addSubview:self.labelShare];

        self.butMore = [[UIButton alloc]init];
        self.butMore.frame = CGRectMake(ScreenWidth-60, CGRectGetMinY(self.imageViewEvaluation.frame)-10, 60,heightEvaluation+20);
        [self.butMore setImage:[UIImage imageNamed:@"动态_更多点"] forState:UIControlStateNormal];
        [self addSubview:self.butMore];
    }
    return self;
}
-(void)setAllDynamicListsMg:(LSZAllDynamicListsMg *)AllDynamicListsMg
{
    self.labelFrame.text= [NSString stringWithFormat:@"---来自%@",AllDynamicListsMg.kind_name];
    self.labelEvaluation.text = AllDynamicListsMg.comment_num;
    self.labelZan.text = AllDynamicListsMg.admire_num ;
    if([AllDynamicListsMg.is_admire isEqualToString:@"0"]){
        self.imageViewZan.image = [UIImage imageNamed:@"点赞"];
    }else{
        self.imageViewZan.image = [UIImage imageNamed:@"我的_签到_留言_已点赞"];
    }
}
@end
